//
//  RTAPIBaseManager+ViewController.m
//  AutobotsPlugin
//
//  Created by 张志恒 on 16/11/8.
//  Copyright © 2016年 Autohome. All rights reserved.
//

#import "RTAPIBaseManager+ViewController.h"
#import <objc/runtime.h>

@implementation RTAPIBaseManager (ViewController)

- (void)setViewController:(UIViewController *)viewController
{
    objc_setAssociatedObject(self, @selector(viewController), viewController, OBJC_ASSOCIATION_ASSIGN);
}

- (UIViewController *)viewController
{
    return objc_getAssociatedObject(self, @selector(viewController));
}

@end
